<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'refer.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <c:set var="referer" value="${pageContext.request.requestURI}?${pageContext.request.queryString}" scope="page"/>&nbsp;
    <c:set var="aaa" value="cadsf" />
   pageScope.referer ${pageScope.referer }   &nbsp;&nbsp;aaa:${ pageScope.aaa}
   <br />
    requestScope.referer2 ${requestScope.referer2 }
        <br />
    requestScope.referer ${requestScope.referer }
        <br />
   request.getHeader("referer") <%=request.getHeader("referer") %>
   <br />
   request.getHeader("Referer")  <%=request.getHeader("Referer") %>
   <br />
   <br />
   <br />
   <br />
   <a href="refer.do?method=refer&asdf=cccsdfasdf">Referer</a>
<%--    result --%>
<%--     pageScope.referer /test/refer.jsp?method=refer&asdf=cccsdfasdf   aaa:cadsf--%>
<%--requestScope.referer2 http://192.168.0.204:8088/test/refer.do--%>
<%--requestScope.referer /test/refer.do?method=refer&asdf=cccsdfasdf--%>
<%--request.getHeader("referer") http://192.168.0.204:8088/test/--%>
<%--request.getHeader("Referer") http://192.168.0.204:8088/test/ --%>
  </body>
</html>
